import React, {Suspense} from 'react';
import {HashRouter} from 'react-router-dom';
import ReactDOM from 'react-dom/client';
import App from '@/App';
import './assets/css/index.less'
import {Provider} from "react-redux";
import store from './store'
import theme from './assets/theme'
import {ThemeProvider} from "styled-components";

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
    <Suspense fallback='loading...'>
        <Provider store={store}>
            <ThemeProvider theme={theme}>
                <HashRouter>
                    <App/>
                </HashRouter>
            </ThemeProvider>
        </Provider>
    </Suspense>
);
